package com.example.aircraftwar.codes.factory;

import static com.example.aircraftwar.codes.activity.GameActivity.game;

import android.content.Context;

import com.example.aircraftwar.codes.activity.GameActivity;
import com.example.aircraftwar.codes.aircraft.BaseEnemyAircraft;
import com.example.aircraftwar.codes.aircraft.EliteEnemy;
import com.example.aircraftwar.codes.application.ImageManager;
import com.example.aircraftwar.codes.strategy.EnemyStraightShoot;

public class EliteEnemyFactory implements EnemyAircraftFactory {

    @Override
    public BaseEnemyAircraft createEnemyAircraft(Context context) {
        BaseEnemyAircraft eliteEnemy = new EliteEnemy(
                context,
                (int) ( Math.random() * (GameActivity.WINDOW_WIDTH - ImageManager.MOB_ENEMY_IMAGE.getWidth()))*1,
                (int) (Math.random() * GameActivity.WINDOW_HEIGHT * 0.1)*1,
                (int) ((-3+Math.random()*5)*2),
                10,
                (int) (40 * game.getAttributeRate()),
                new EnemyStraightShoot()
        );
        return eliteEnemy;
    }

}